| |
Exercise: DM-Crypt+LUKS
DM-Crypt works by transparently translating (in the kernel) between a physical on-disk partition (which is encrypted) and a logical partition which you can then mount and use as normal.
Linux Unified Key Setup or LUKS is a disk encryption specification.
Install cryptsetup:
Zero out the storage devices, label and partition.
Create a LUKS container:
Open the LUKS container:
Check the device mapping for drive secure:
Create a file system, a mounting point and mount the device:
Verify that the file system is mounted:
Unmount the drive:
Delete the device mapper:
To mount the device, first, setup the device mapper:
Mount the device
You can add an additional passphrase (password) for encrypted partition:
Maximum 8 passwords can be setup for each device.
To remove one of the passwords:
Enter the old passphrase to remove.
If the drive is stolen, it won't be mountable without the device mapper setup, which requires the password.
|
|